ReadOnlyDictionaryWrapper<TKey, TValue> class

Implements read-only wrapper of a dictionary.

Namespace: TypeLite.ReadOnlyDictionary

Interfaces: IReadOnlyDictionary<TKey, TValue>

Properties

Name Description
Count Gets the number of items in the collection.
Item Gets the item that exists at a specified key.
Keys Gets the collection of keys in the dictionary.
Values Gets the collection of values in the dictionary.

Methods

Name Description
GetEnumerator Returns an enumerator that iterates through the collection.

ReadOnlyDictionaryWrapper<TKey, TValue>.Count property

Gets the number of items in the collection.

Syntax


ReadOnlyDictionaryWrapper<TKey, TValue>.Item property

Gets the item that exists at a specified key.

Syntax


ReadOnlyDictionaryWrapper<TKey, TValue>.Keys property

Gets the collection of keys in the dictionary.

Syntax


ReadOnlyDictionaryWrapper<TKey, TValue>.Values property

Gets the collection of values in the dictionary.

Syntax


ReadOnlyDictionaryWrapper<TKey, TValue>.GetEnumerator method

Returns an enumerator that iterates through the collection.

Syntax

Returns

IEnumerator<KeyValuePair<TKey, TValue>>
A IEnumerator that can be used to iterate through the collection.